package com.coolgor.coldot.entity.wechat.oauth2;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class OAuth2AccessToken {

	private Long recordID;
	private String appID;
	private String appName;
	private String accessToken;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date accessTokenCreateTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date accessTokenInvalidTime;
	private Integer accessTokenExpireTime;
	private String refreshToken;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date refreshTokenCreateTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date refreshTokenInvalidTime;
	private Integer refreshTokenExpireTime;
	private String openid;
	private String scope;

	public Long getRecordID() {
		return recordID;
	}
	public void setRecordID(Long recordID) {
		this.recordID = recordID;
	}
	public String getAppID() {
		return appID;
	}
	public void setAppID(String appID) {
		this.appID = appID;
	}
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}
	public String getAccessToken() {
		return accessToken;
	}
	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}
	public Date getAccessTokenCreateTime() {
		return accessTokenCreateTime;
	}
	public void setAccessTokenCreateTime(Date accessTokenCreateTime) {
		this.accessTokenCreateTime = accessTokenCreateTime;
	}
	public Date getAccessTokenInvalidTime() {
		return accessTokenInvalidTime;
	}
	public void setAccessTokenInvalidTime(Date accessTokenInvalidTime) {
		this.accessTokenInvalidTime = accessTokenInvalidTime;
	}
	public Integer getAccessTokenExpireTime() {
		return accessTokenExpireTime;
	}
	public void setAccessTokenExpireTime(Integer accessTokenExpireTime) {
		this.accessTokenExpireTime = accessTokenExpireTime;
	}
	public String getRefreshToken() {
		return refreshToken;
	}
	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}
	public Date getRefreshTokenCreateTime() {
		return refreshTokenCreateTime;
	}
	public void setRefreshTokenCreateTime(Date refreshTokenCreateTime) {
		this.refreshTokenCreateTime = refreshTokenCreateTime;
	}
	public Date getRefreshTokenInvalidTime() {
		return refreshTokenInvalidTime;
	}
	public void setRefreshTokenInvalidTime(Date refreshTokenInvalidTime) {
		this.refreshTokenInvalidTime = refreshTokenInvalidTime;
	}
	public Integer getRefreshTokenExpireTime() {
		return refreshTokenExpireTime;
	}
	public void setRefreshTokenExpireTime(Integer refreshTokenExpireTime) {
		this.refreshTokenExpireTime = refreshTokenExpireTime;
	}
	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	public String getScope() {
		return scope;
	}
	public void setScope(String scope) {
		this.scope = scope;
	}

	@Override
	public String toString() {
		return "OAuth2AccessToken{" +
				"recordID=" + recordID +
				", appID='" + appID + '\'' +
				", appName='" + appName + '\'' +
				", accessToken='" + accessToken + '\'' +
				", accessTokenCreateTime=" + accessTokenCreateTime +
				", accessTokenInvalidTime=" + accessTokenInvalidTime +
				", accessTokenExpireTime=" + accessTokenExpireTime +
				", refreshToken='" + refreshToken + '\'' +
				", refreshTokenCreateTime=" + refreshTokenCreateTime +
				", refreshTokenInvalidTime=" + refreshTokenInvalidTime +
				", refreshTokenExpireTime=" + refreshTokenExpireTime +
				", openid='" + openid + '\'' +
				", scope='" + scope + '\'' +
				'}';
	}
}